<template>
    <framework
            :navData="navData"
            @changeView="changeView">
        <router-view slot="body"></router-view>
    </framework>
</template>

<script>
    import framework from '@modules/common/framework.vue';

    export default {
        name: "index",
        data () {
            return {
                navData: [
                    {
                        title: "管理员用户",
                        id: "0",
                        name: "manageAdmin"
                    },
                    {
                        title: "教师用户",
                        id: "1",
                        name: "manageTeacher"
                    },{
                        title: "学生用户",
                        id: "2",
                        name: "manageStudent"
                    }
                ]
            }
        },
        components: {
            framework
        },
        methods: {
            changeView (name) {
                this.$router.push({
                    name: name
                });
            }
        }
    }
</script>

<style type="text/scss" lang="scss">

</style>